﻿using LPLS.Commons.DBModule;
using LPLS.Commons.Enums;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LPLS.DBEntities.ConfigModels.DataCollectionConfigModule.DataCollectionRuleEdgeModule
{

    [DatabaseKey(DatabaseEnum.CollectionConfigDB)]
    [SugarTable(nameof(DataCollectionRuleConfig))]
    public  class DataCollectionRuleConfig
    {

       public Guid WorkFlowID { get; set; }


        [SugarColumn(IsPrimaryKey = true)]
        public Guid ID { get; set; }
        /// <summary>
        /// 规则名称
        /// </summary>
        public string RuleName { get; set; }
        /// <summary>
        /// 表达式
        /// </summary>
        public string Expression { get; set; }

        /// <summary>
        /// 成功的 状态枚举值
        /// </summary>
        public string SuccessEvent { get; set; }

        public string ExpressionJson { get; set; }
        ///// <summary>
        ///// 父节点
        ///// </summary>
        //public Guid ParentRuleID { get; set; }

        ///// <summary>
        ///// 子规则
        ///// </summary>
        //[SugarColumn(IsIgnore =true)]
        //public  List<DataCollectionRuleConfig> Children { get; set; }
    }


    public class ExpressItem 
    {    
      /// <summary>
      /// 名称
      /// </summary>
        public string Name { get; set; }
       /// <summary>
       /// 值
       /// </summary>
        public string  Value { get; set; }

    }
}
